allMatchesForSearch

fun allMatchesForSearch(book: AccountBook, search: CurrencySearch, excludeHidden: Boolean = false, sortComparator: Comparator<CurrencyType>? = null): List<CurrencyType>

Return a list of currencies matching the given search filter

Author

Stuart Beesley - June 2024

Since

MD2024.2(5140)

Parameters

book

the AccountBook

search

the CurrencySearch to use

excludeHidden

optionally specify true to also exclude when 'hide on summary page' is set...

sortComparator

To return a sorted list, provide a comparator to use. I suggest @CurrencySearch.CURRENCY_TYPENAME_CASE_INSENSITIVE_COMPARATOR